package fr.uniscol.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import fr.uniscol.model.Academie;

public class AcademieRowMapper implements RowMapper<Academie> {

	@Override
	public Academie mapRow(ResultSet rs, int line) throws SQLException {
		
		Academie a = new Academie();
		a.setId(rs.getInt("ID"));
		a.setNom(rs.getString("NOM"));
		a.setCode(rs.getString("CODE"));
		
		return a;
	}

}
